11 #ifndef __CH_EVALCONTEXTFWD_H_INLUDED__
12 #define __CH_EVALCONTEXTFWD_H_INLUDED__
27 class CH_ScriptAccessManager;
53 #if defined(CH_USE_FLICKS)
64 {
return myCollection; }
66 {
return myCollection; }
68 {
return myContextOptionsStack; }
70 {
return myContextOptions; }
80 {
return myChannelName; }
82 {
return myParentContext; }
85 #if defined(CH_USE_FLICKS)
86 inline void setFlicks(
SYS_Flicks fl) { myFlicks = fl; }
92 inline void setTime(
fpreal t) { mySeconds =
t; }
105 const char *myChannelName;
115 template <> constexpr SYS_STATIC_INLINE
bool
129 {
return myContext.time(); }
131 {
return myContext.myCollection; }
133 {
return myContext.myChannel; }
135 {
return myContext.mySegment; }
137 {
return myContext.myChannelName; }
142 myContext.setTime(t);
147 myContext.setFlicks(fl);
153 myContext.myCollection = collection;
163 myContext.myChannel = NULL;
164 myContext.mySegment = NULL;
165 myContext.myChannelName = channel_name;
172 myContext.mySegment = segment;
180 myContext.myContextOptions = options;
181 myContext.myContextOptionsStack = options_stack;
188 myContext.setTime(t);
189 myContext.myCollection = collection;
190 setChannel(chp, seg);
195 myContext.setTime(t);
196 myContext.myCollection = collection;
197 setChannel(NULL, NULL);
202 myContext.setFlicks(t);
203 myContext.myCollection = collection;
204 setChannel(chp, seg);
209 myContext.setFlicks(t);
210 myContext.myCollection = collection;
211 setChannel(NULL, NULL);
216 myContext.myCollection = collection;
217 setChannel(channel, NULL);
222 myContext.myCollection = collection;
223 setChannelName(channel_name);
228 CH_ScriptAccessManager* myAccessMgr;
232 #endif // __CH_EVALCONTEXTFWD_H_INLUDED__
CH_Collection * collection()
void setChannelName(const char *channel_name)
void set(SYS_Flicks t, CH_Collection *collection, CH_Channel *chp, CH_Segment *seg)
constexpr SYS_Flicks SYStoFlicks(double seconds)
GT_API const UT_StringHolder time
const CH_Segment * segment() const
void setFlicks(SYS_Flicks fl)
SYS_Flicks flicks() const
constexpr double SYStoSeconds(const SYS_Flicks f)
constexpr SYS_STATIC_INLINE bool SYSisPOD< CH_EvalContext >()
std::chrono::duration< std::chrono::nanoseconds::rep, std::ratio< 1, 705600000 >> flicks
void setSegment(CH_Segment *segment)
CH_EvalContext * parentContext()
void set(fpreal t, CH_Collection *collection, CH_Channel *chp, CH_Segment *seg)
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
const CH_Collection * collection() const
void set(fpreal t, CH_Collection *collection)
void setContextOptions(const DEP_ContextOptionsReadHandle &options, const DEP_ContextOptionsStack *options_stack)
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
Push & restore the evaluation time (and optionally a channel collection)
void set(CH_Collection *collection, CH_Channel *channel)
const char * channelName() const
const DEP_ContextOptionsStack * contextOptionsStack() const
DEP_ContextOptionsReadHandle contextOptions() const
void setCollection(CH_Collection *collection)
void set(CH_Collection *collection, const char *channel_name)
void set(SYS_Flicks t, CH_Collection *collection)
const CH_Channel * channel() const