synfig-core  1.0.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
synfig::Type Class Reference

Class for the Type of Values of Synfig. More...

#include <type.h>

Inheritance diagram for synfig::Type:
synfig::types_namespace::TypePairBase synfig::types_namespace::TypeWeightedValueBase synfig::types_namespace::TypePair< T1, T2 > synfig::types_namespace::TypeWeightedValue< T >

Classes

struct  Description
class  OperationBook
class  OperationBookBase
struct  StaticData

Public Types

enum  { NIL = 0 }
typedef Operation::InternalPointer InternalPointer

Public Member Functions

virtual ~Type ()
void initialize ()
void deinitialize ()
bool operator== (const Type &other)
bool operator!= (const Type &other)
Typeget_next () const

Static Public Member Functions

static void initialize_all ()
static void deinitialize_all ()
static Typeget_first ()
template<typename T >
static T get_operation (const Operation::Description &description)
template<typename T >
static T get_operation_by_type (const Operation::Description &description, T)
template<typename T >
static Typeget_type ()
template<typename T >
static const TypeIdget_type_id ()
template<typename T >
static Typeget_type_by_pointer (const T *)
template<typename T >
static Typeget_type_by_reference (const T &)
static Typetry_get_type_by_id (TypeId id)
static Typetry_get_type_by_name (const String &name)
static Typeget_type_by_id (TypeId id)
static Typeget_type_by_name (const String &name)
template<typename T >
static String value_to_string (const T &x)
static bool subsys_init ()
static bool subsys_stop ()

Public Attributes

const TypeIdidentifier
const Descriptiondescription

Protected Member Functions

 Type (TypeId)
 Type ()
virtual void initialize_vfunc (Description &description)
virtual void deinitialize_vfunc (Description &)
void register_copy (TypeId type_a, TypeId type_b, Operation::CopyFunc func)
void register_copy (TypeId type, Operation::CopyFunc func)
void register_compare (TypeId type_a, TypeId type_b, Operation::CompareFunc func)
void register_compare (TypeId type, Operation::CompareFunc func)
void register_to_string (TypeId type, Operation::ToStringFunc func)
void register_binary (Operation::OperationType operation_type, TypeId type_return, TypeId type_a, TypeId type_b, Operation::BinaryFunc func)
void register_binary (const Operation::Description &description, Operation::BinaryFunc func)
void register_create (Operation::CreateFunc func)
void register_destroy (Operation::DestroyFunc func)
template<typename T >
void register_set (typename Operation::GenericFuncs< T >::SetFunc func)
template<typename T >
void register_put (typename Operation::GenericFuncs< T >::PutFunc func)
template<typename T >
void register_get (typename Operation::GenericFuncs< T >::GetFunc func)
void register_copy (Operation::CopyFunc func)
void register_compare (Operation::CompareFunc func)
void register_to_string (Operation::ToStringFunc func)
void register_default (Operation::CreateFunc func)
void register_default (Operation::DestroyFunc func)
template<typename T >
void register_default (typename Operation::GenericFuncs< T >::SetFunc func)
template<typename T >
void register_default (typename Operation::GenericFuncs< T >::PutFunc func)
template<typename T >
void register_default (typename Operation::GenericFuncs< T >::GetFunc func)
void register_default (Operation::CopyFunc func)
void register_default (Operation::CompareFunc func)
void register_default (Operation::ToStringFunc func)
template<typename Inner , typename Outer , String(*)(const Inner &) Func>
void register_all ()
template<typename Inner , typename Outer , String(*)(const Inner &) Func>
void register_all_but_compare ()
template<typename Inner , typename Outer >
void register_alias ()
template<typename Outer , String(*)(const Outer &) Func>
void register_all ()
template<typename Outer , String(*)(const Outer &) Func>
void register_all_but_compare ()

Detailed Description

Class for the Type of Values of Synfig.

Member Typedef Documentation

Member Enumeration Documentation

anonymous enum
Enumerator:
NIL 

Constructor & Destructor Documentation

Type::Type ( TypeId  )
explicitprotected
Type::Type ( )
protected

References NIL.

Type::~Type ( )
virtual

References deinitialize().

Member Function Documentation

virtual void synfig::Type::initialize_vfunc ( Description description)
inlineprotectedvirtual
virtual void synfig::Type::deinitialize_vfunc ( Description )
inlineprotectedvirtual

Referenced by deinitialize().

void Type::initialize ( )
void Type::deinitialize ( )

References deinitialize_vfunc(), and initialize().

Referenced by ~Type().

bool synfig::Type::operator== ( const Type other)
inline
bool synfig::Type::operator!= ( const Type other)
inline
void Type::initialize_all ( )
static
void Type::deinitialize_all ( )
static
Type* synfig::Type::get_next ( ) const
inline
static Type* synfig::Type::get_first ( )
inlinestatic
template<typename T >
static T synfig::Type::get_operation ( const Operation::Description description)
inlinestatic
template<typename T >
static T synfig::Type::get_operation_by_type ( const Operation::Description description,
 
)
inlinestatic
template<typename T >
static Type& synfig::Type::get_type ( )
inlinestatic
template<typename T >
static const TypeId& synfig::Type::get_type_id ( )
inlinestatic
template<typename T >
static Type& synfig::Type::get_type_by_pointer ( const T *  )
inlinestatic
template<typename T >
static Type& synfig::Type::get_type_by_reference ( const T &  )
inlinestatic
static Type* synfig::Type::try_get_type_by_id ( TypeId  id)
inlinestatic
static Type* synfig::Type::try_get_type_by_name ( const String name)
inlinestatic
static Type& synfig::Type::get_type_by_id ( TypeId  id)
inlinestatic
static Type& synfig::Type::get_type_by_name ( const String name)
inlinestatic
void synfig::Type::register_copy ( TypeId  type_a,
TypeId  type_b,
Operation::CopyFunc  func 
)
inlineprotected
void synfig::Type::register_copy ( TypeId  type,
Operation::CopyFunc  func 
)
inlineprotected
void synfig::Type::register_compare ( TypeId  type_a,
TypeId  type_b,
Operation::CompareFunc  func 
)
inlineprotected
void synfig::Type::register_compare ( TypeId  type,
Operation::CompareFunc  func 
)
inlineprotected
void synfig::Type::register_to_string ( TypeId  type,
Operation::ToStringFunc  func 
)
inlineprotected
void synfig::Type::register_binary ( Operation::OperationType  operation_type,
TypeId  type_return,
TypeId  type_a,
TypeId  type_b,
Operation::BinaryFunc  func 
)
inlineprotected
void synfig::Type::register_binary ( const Operation::Description description,
Operation::BinaryFunc  func 
)
inlineprotected
void synfig::Type::register_create ( Operation::CreateFunc  func)
inlineprotected

References register_create().

Referenced by register_create().

void synfig::Type::register_destroy ( Operation::DestroyFunc  func)
inlineprotected

References register_destroy().

Referenced by register_destroy().

template<typename T >
void synfig::Type::register_set ( typename Operation::GenericFuncs< T >::SetFunc  func)
inlineprotected

References register_set().

Referenced by register_set().

template<typename T >
void synfig::Type::register_put ( typename Operation::GenericFuncs< T >::PutFunc  func)
inlineprotected

References register_put().

Referenced by register_put().

template<typename T >
void synfig::Type::register_get ( typename Operation::GenericFuncs< T >::GetFunc  func)
inlineprotected

References register_get().

Referenced by register_get().

void synfig::Type::register_copy ( Operation::CopyFunc  func)
inlineprotected

References register_copy().

Referenced by register_copy().

void synfig::Type::register_compare ( Operation::CompareFunc  func)
inlineprotected

References register_compare().

Referenced by register_compare().

void synfig::Type::register_to_string ( Operation::ToStringFunc  func)
inlineprotected

References register_to_string().

Referenced by register_to_string().

void synfig::Type::register_default ( Operation::CreateFunc  func)
inlineprotected
void synfig::Type::register_default ( Operation::DestroyFunc  func)
inlineprotected
template<typename T >
void synfig::Type::register_default ( typename Operation::GenericFuncs< T >::SetFunc  func)
inlineprotected
template<typename T >
void synfig::Type::register_default ( typename Operation::GenericFuncs< T >::PutFunc  func)
inlineprotected
template<typename T >
void synfig::Type::register_default ( typename Operation::GenericFuncs< T >::GetFunc  func)
inlineprotected
void synfig::Type::register_default ( Operation::CopyFunc  func)
inlineprotected
void synfig::Type::register_default ( Operation::CompareFunc  func)
inlineprotected
void synfig::Type::register_default ( Operation::ToStringFunc  func)
inlineprotected
template<typename Inner , typename Outer , String(*)(const Inner &) Func>
void synfig::Type::register_all ( )
inlineprotected
template<typename Inner , typename Outer , String(*)(const Inner &) Func>
void synfig::Type::register_all_but_compare ( )
inlineprotected
template<typename Inner , typename Outer >
void synfig::Type::register_alias ( )
inlineprotected
template<typename Outer , String(*)(const Outer &) Func>
void synfig::Type::register_all ( )
inlineprotected
template<typename Outer , String(*)(const Outer &) Func>
void synfig::Type::register_all_but_compare ( )
inlineprotected
template<typename T >
static String synfig::Type::value_to_string ( const T &  x)
inlinestatic
static bool synfig::Type::subsys_init ( )
inlinestatic

Referenced by synfig::Main::Main().

static bool synfig::Type::subsys_stop ( )
inlinestatic

Member Data Documentation

const TypeId& synfig::Type::identifier
const Description& synfig::Type::description

The documentation for this class was generated from the following files: