OpenCV  3.2.0-dev
Open Source Computer Vision
CvTypeInfo Struct Reference

Type information. More...

#include "types_c.h"

Collaboration diagram for CvTypeInfo:

Public Attributes

CvCloneFunc clone
 creates a copy of the object More...
 
int flags
 not used More...
 
int header_size
 sizeof(CvTypeInfo) More...
 
CvIsInstanceFunc is_instance
 checks if the passed object belongs to the type More...
 
struct CvTypeInfonext
 next registered type in the list More...
 
struct CvTypeInfoprev
 previous registered type in the list More...
 
CvReadFunc read
 reads object from file storage More...
 
CvReleaseFunc release
 releases object (memory etc.) More...
 
const char * type_name
 type name, written to file storage More...
 
CvWriteFunc write
 writes object to file storage More...
 

Detailed Description

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.

Member Data Documentation

CvCloneFunc CvTypeInfo::clone

creates a copy of the object

int CvTypeInfo::flags

not used

int CvTypeInfo::header_size

sizeof(CvTypeInfo)

CvIsInstanceFunc CvTypeInfo::is_instance

checks if the passed object belongs to the type

struct CvTypeInfo* CvTypeInfo::next

next registered type in the list

struct CvTypeInfo* CvTypeInfo::prev

previous registered type in the list

CvReadFunc CvTypeInfo::read

reads object from file storage

CvReleaseFunc CvTypeInfo::release

releases object (memory etc.)

const char* CvTypeInfo::type_name

type name, written to file storage

CvWriteFunc CvTypeInfo::write

writes object to file storage


The documentation for this struct was generated from the following file: