FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kMemoryDomainBlockInfo.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_MEMORY_DOMAIN_BLOCK_INFO_H
9 #define K_FIRESYNC_MEMORY_DOMAIN_BLOCK_INFO_H
10 
11 #include <kFireSync/kNodeDef.h>
12 
20 
22 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_HOST (0x01)
23 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA (0x02)
24 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA_DEVICE (0x04)
25 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA_MANAGED (0x08)
26 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_CUDA_PINNED (0x10)
27 #define kMEMORY_DOMAIN_BLOCK_OUTPUT_OPTIONS (0x1F)
28 
30 #include <kFireSync/Blocks/kMemoryDomainBlockInfo.x.h>
31 
38 //typedef kObject kMemoryDomainBlockInfo; --forward-declared in kFsDef.x.h
39 
49 
60 
71 
81 kFsFx(kStatus) kMemoryDomainBlockInfo_Read(kMemoryDomainBlockInfo info, kXml xml, kXmlItem item);
82 
92 kFsFx(kStatus) kMemoryDomainBlockInfo_Write(kMemoryDomainBlockInfo info, kXml xml, kXmlItem item);
93 
102 
111 
121 {
123 
124  obj->forceCloneEnabled = enabled;
125 
126  return kOK;
127 }
128 
137 {
139 
140  return obj->forceCloneEnabled;
141 }
142 
152 {
154 
155  obj->outputMemory = outputType;
156 
157  return kOK;
158 }
159 
168 {
170 
171  return obj->outputMemory;
172 }
173 
176 
179 
180 #endif
kStatus kMemoryDomainBlockInfo_Construct(kMemoryDomainBlockInfo *info, kAlloc allocator)
Constructs a kMemoryDomainBlockInfo object.
k16u kMemoryDomainBlockInfo_OutputPortId()
Gets the output port id.
Definition: kMemoryDomainBlockInfo.h:178
kBool kMemoryDomainBlockInfo_ForceCloneEnabled(kMemoryDomainBlockInfo info)
Reports whether forced cloning is enabled.
Definition: kMemoryDomainBlockInfo.h:136
kStatus kMemoryDomainBlockInfo_Load(kMemoryDomainBlockInfo *info, kXml xml, kAlloc allocator)
Constructs a kMemoryDomainBlockInfo object and loads its content from an XML object.
#define kInlineFx(TYPE)
Essential declarations related to FireSync nodes.
kStatus kMemoryDomainBlockInfo_Store(kMemoryDomainBlockInfo info, kXml *xml, kAlloc allocator)
Constructs a kXml object and uses it to store the content of this kMemoryDomainBlockInfo instance...
kStatus kMemoryDomainBlockInfo_SetOutputMemory(kMemoryDomainBlockInfo info, kMemoryDomainBlockOutput outputType)
Sets the desired output memory type.
Definition: kMemoryDomainBlockInfo.h:151
#define kObj(TypeName_T, T_object)
kStatus kMemoryDomainBlockInfo_Write(kMemoryDomainBlockInfo info, kXml xml, kXmlItem item)
Writes kMemoryDomainBlockInfo state to a kXml object.
kStatus kMemoryDomainBlockInfo_Validate(kMemoryDomainBlockInfo info)
Checks and automatically corrects all state variables.
Represents a kMemoryDomainBlock output memory type.
Represents configuration for kMemoryDomainBlock.
kStatus kMemoryDomainBlockInfo_Read(kMemoryDomainBlockInfo info, kXml xml, kXmlItem item)
Reads kMemoryDomainBlockInfo state from a kXml object.
#define kOK
kStatus kMemoryDomainBlockInfo_Clear(kMemoryDomainBlockInfo info)
Resets all state variables to default values.
kMemoryDomainBlockOutput kMemoryDomainBlockInfo_OutputMemory(kMemoryDomainBlockInfo info)
Reports the selected output memory type.
Definition: kMemoryDomainBlockInfo.h:167
kStatus kMemoryDomainBlockInfo_EnableForceClone(kMemoryDomainBlockInfo info, kBool enabled)
Enables forced cloning, which causes the block to clone even when incoming memory may already be suit...
Definition: kMemoryDomainBlockInfo.h:120
k16u kMemoryDomainBlockInfo_InputPortId()
Gets the input port id.
Definition: kMemoryDomainBlockInfo.h:175