struct CvTypeInfo
Overview
Type information. Moreā¦
#include <types_c.h> struct CvTypeInfo { // fields CvCloneFunc clone; int flags; int header_size; CvIsInstanceFunc is_instance; struct CvTypeInfo* next; struct CvTypeInfo* prev; CvReadFunc read; CvReleaseFunc release; const char* type_name; CvWriteFunc write; };
Detailed Documentation
Type information.
The structure contains information about one of the standard or user-defined types. Instances of the type may or may not contain a pointer to the corresponding CvTypeInfo structure. In any case, there is a way to find the type info structure for a given object using the cvTypeOf function. Alternatively, type info can be found by type name using cvFindType, which is used when an object is read from file storage. The user can register a new type with cvRegisterType that adds the type information structure into the beginning of the type list. Thus, it is possible to create specialized types from generic standard types and override the basic methods.
Fields
CvCloneFunc clone
creates a copy of the object
int flags
not used
int header_size
sizeof(CvTypeInfo)
CvIsInstanceFunc is_instance
checks if the passed object belongs to the type
struct CvTypeInfo* next
next registered type in the list
struct CvTypeInfo* prev
previous registered type in the list
CvReadFunc read
reads object from file storage
CvReleaseFunc release
releases object (memory etc.)
const char* type_name
type name, written to file storage
CvWriteFunc write
writes object to file storage