3DiVi Face SDK
3.24.1
|
Context is an interface object for storing data and interacting with methods from the Processing Block API. More...
#import <Context.h>
Instance Methods | |
(void) | - setLong: |
adds a value of type long to the container More... | |
(void) | - setDouble: |
adds a value of type double to the container More... | |
(void) | - setBool: |
adds a value of type bool to the container More... | |
(void) | - setString: |
adds a value of type std::string to the container More... | |
(void) | - setDataPtr:: |
adds a pointer to the data in the container More... | |
(void) | - setNSData: |
adds a pointer to the data in the container More... | |
(void) | - set: |
adds another container Context More... | |
(int64_t) | - getLong |
returns a long value from the container More... | |
(double) | - getDouble |
returns a double value from the container More... | |
(bool) | - getBool |
returns a bool value from the container More... | |
(NSString *_Nonnull) | - getString |
returns a std::string value from the container More... | |
(uint8_t *_Nonnull) | - getDataPtr |
returns a pointer to data from the container More... | |
(const NSData *_Nonnull) | - getNSData: |
returns a NSData More... | |
(Context *_Nonnull) | - at: |
indexing by index. More... | |
(Context *_Nonnull) | - get: |
indexing by key. More... | |
(size_t) | - size |
Get the size of the container. More... | |
(bool) | - contains: |
checks the existence of an element by a specific key More... | |
(bool) | - compare: |
compares two Context objects More... | |
(void) | - clear |
clears the contents of the container-Context. | |
(void) | - erase: |
deletes the contents of the container-Context stored by key. More... | |
(void) | - reserve: |
allocates memory for num elements in the array. More... | |
(void) | - saveToJsonFile: |
saves the contents of the container to a json file More... | |
(nonnull NSMutableArray *) | - getKeys |
returns a list of keys in the container-Context More... | |
(void) | - pushBack: |
adds a object to the container. More... | |
(void) | - pushBackLong: |
adds a object to the container. More... | |
(void) | - pushBackDouble: |
adds a object to the container. More... | |
(void) | - pushBackBool: |
adds a object to the container. More... | |
(void) | - pushBackString: |
adds a object to the container. More... | |
(bool) | - isNone |
checks if there are no elements in the container More... | |
(bool) | - isObject |
checks whether the container is an object More... | |
(bool) | - isArray |
checks whether the container is an array More... | |
(bool) | - isBool |
checks whether the container is a bool type value More... | |
(bool) | - isString |
checks whether the container is a long type string More... | |
(bool) | - isDouble |
checks whether the container is a long type double More... | |
(bool) | - isLong |
проверяет является ли контейнер значением типа long. More... | |
(bool) | - isDataPtr |
checks whether the container is a pointer to the data More... | |
Context is an interface object for storing data and interacting with methods from the Processing Block API.
- (Context *_Nonnull) at: | (int) | index |
indexing by index.
[in] | index |
- (bool) compare: | (Context *_Nonnull) | other |
compares two Context objects
[in] | other | - container-Context |
- (bool) contains: | (NSString *_Nonnull) | key |
checks the existence of an element by a specific key
[in] | key |
- (void) erase: | (NSString *_Nonnull) | key |
deletes the contents of the container-Context stored by key.
[in] | key. |
- (Context *_Nonnull) get: | (NSString *_Nonnull) | key |
indexing by key.
[in] | key |
- (bool) getBool |
returns a bool value from the container
- (uint8_t *_Nonnull) getDataPtr |
returns a pointer to data from the container
- (double) getDouble |
returns a double value from the container
- (nonnull NSMutableArray *) getKeys |
returns a list of keys in the container-Context
- (int64_t) getLong |
returns a long value from the container
- (const NSData *_Nonnull) getNSData: | (int64_t) | size |
returns a NSData
[in] | size | - data buffer size |
- (NSString *_Nonnull) getString |
returns a std::string value from the container
- (bool) isArray |
checks whether the container is an array
- (bool) isBool |
checks whether the container is a bool type value
- (bool) isDataPtr |
checks whether the container is a pointer to the data
- (bool) isDouble |
checks whether the container is a long type double
- (bool) isLong |
проверяет является ли контейнер значением типа long.
- (bool) isNone |
checks if there are no elements in the container
- (bool) isObject |
checks whether the container is an object
- (bool) isString |
checks whether the container is a long type string
- (void) pushBack: | (Context *_Nonnull) | value |
adds a object to the container.
[in] | value | - container-Context |
- (void) pushBackBool: | (bool) | value |
adds a object to the container.
[in] | value | - container-Context |
- (void) pushBackDouble: | (double) | value |
adds a object to the container.
[in] | value | - container-Context |
- (void) pushBackLong: | (int64_t) | value |
adds a object to the container.
[in] | value | - container-Context |
- (void) pushBackString: | (NSString *_Nonnull) | value |
adds a object to the container.
[in] | value | - container-Context |
- (void) reserve: | (size_t) | size |
allocates memory for num elements in the array.
[in] | size | - the size of the array. |
- (void) saveToJsonFile: | (NSString *_Nonnull) | path |
saves the contents of the container to a json file
[in] | path | - the path to the file |
- (void) set: | (Context* _Nonnull) | other |
- (void) setBool: | (bool) | value |
adds a value of type bool to the container
[in] | value | - bool value |
- (void) setDataPtr: | (const uint8_t *_Nullable) | value | |
: | (int) | copy_sz | |
adds a pointer to the data in the container
[in] | value | - pointer to data |
[in] | copy_sz | - the number of copied elements, if 0 is specified, then there will be no copying |
- (void) setDouble: | (double) | value |
adds a value of type double to the container
[in] | value | - double value |
- (void) setLong: | (int64_t) | value |
adds a value of type long to the container
[in] | value | - long value |
- (void) setNSData: | (NSData* _Nonnull) | data |
adds a pointer to the data in the container
[in] | data | - NSData value |
- (void) setString: | (NSString *_Nonnull) | value |
adds a value of type std::string to the container
[in] | value | - NSString value |
- (size_t) size |
Get the size of the container.