VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Macros
doubleBufferedDataStorage.h File Reference

Go to the source code of this file.

Namespaces

 makVrf
 

Macros

#define DEFINE_REF_ACCESSORS(ReturnType, Method, Member)
 
#define DEFINE_MUTATOR(Type, Mutator)   void set##Mutator(const Type& v) { my##Mutator = v; };
 
#define DEFINE_MUTATOR_PROTOTYPE(Type, Mutator)   void set##Mutator(const Type& v);
 
#define DEFINE_ACCESSOR_MUTATOR(ReturnType, Accessor, Mutator)
 
#define DEFINE_ACCESSOR_MUTATOR_PROTOTYPE(ReturnType, Accessor, Mutator)
 
#define UNDEFINED_RETURNVALUE_ACCESSOR(ReturnType, Member)   virtual const ReturnType Member() const { throw DtUnimplementedMethod("The const " #Member " const method is unimplemented"); };
 
#define UNDEFINED_RETURNREF_ACCESSOR(ReturnType, Member)   virtual const ReturnType& Member() const { throw DtUnimplementedMethod("The const &" #Member " const method is unimplemented"); };
 
#define UNDEFINED_RETURNREF_CONST_ACCESSOR(ReturnType, Member)   virtual const ReturnType& Member() const { throw DtUnimplementedMethod("The const &" #Member " const method is unimplemented"); };
 
#define UNDEFINED_RETURNREF_ACCESSORS(ReturnType, Member)
 
#define UNDEFINED_MUTATOR(Type, Set)   virtual void set##Set(const Type& v) { throw DtUnimplementedMethod("The set" #Set " method is unimplemented"); };
 
#define UNDEFINED_MUTATOR_WITH_ARGS(Set,...)   virtual void set##Set(__VA_ARGS__) { throw DtUnimplementedMethod("The set" #Set " method is unimplemented"); };
 
#define UNDEFINED_MUTATOR_METHOD(Set,...)   virtual void set##Set(__VA_ARGS__) { throw DtUnimplementedMethod("The set" #Set " method is unimplemented"); };
 
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
 
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
 
#define UNDEFINED_RETURNREF_ACCESSORS_MUTATOR(Type, Member, Set)
 
#define UNDEFINED_CONST_METHOD(Type, Method,...)   virtual Type Method(__VA_ARGS__) const { throw DtUnimplementedMethod("The const " #Method " const method is unimplemented"); };
 
#define UNDEFINED_METHOD(Type, Method,...)   virtual Type Method(__VA_ARGS__) { throw DtUnimplementedMethod("The " #Method " method is unimplemented"); };
 

Macro Definition Documentation

#define DEFINE_REF_ACCESSORS (   ReturnType,
  Method,
  Member 
)
Value:
const ReturnType& Method() const { return my##Member; }; \
ReturnType& Method() { return my##Member; };

Defines const and non-const reference accessors for a member variable.

Parameters
ReturnTypeThe return type of the accessor.
MethodThe accessor method name.
MemberThe member variable name (without the "my" prefix).
#define DEFINE_MUTATOR (   Type,
  Mutator 
)    void set##Mutator(const Type& v) { my##Mutator = v; };

Defines an inline setter method that assigns a value to a member variable.

Parameters
TypeThe parameter type of the setter.
MutatorThe setter name suffix (appended to "set") and member variable name (without the "my" prefix).
#define DEFINE_MUTATOR_PROTOTYPE (   Type,
  Mutator 
)    void set##Mutator(const Type& v);

Declares a setter method prototype without providing an inline implementation.

Parameters
TypeThe parameter type of the setter.
MutatorThe setter name suffix (appended to "set").
#define DEFINE_ACCESSOR_MUTATOR (   ReturnType,
  Accessor,
  Mutator 
)
Value:
const ReturnType& Accessor() const { return my##Mutator; }; \
DEFINE_MUTATOR(ReturnType, Mutator)
#define DEFINE_MUTATOR(Type, Mutator)
Defines an inline setter method that assigns a value to a member variable.
Definition: doubleBufferedDataStorage.h:24

Defines a const reference accessor and an inline setter for a member variable.

Parameters
ReturnTypeThe return type of the accessor.
AccessorThe accessor method name.
MutatorThe setter name suffix (appended to "set") and member variable name (without the "my" prefix).
#define DEFINE_ACCESSOR_MUTATOR_PROTOTYPE (   ReturnType,
  Accessor,
  Mutator 
)
Value:
const ReturnType Accessor() const; \
DEFINE_MUTATOR_PROTOTYPE(ReturnType, Mutator)
#define DEFINE_MUTATOR_PROTOTYPE(Type, Mutator)
Declares a setter method prototype without providing an inline implementation.
Definition: doubleBufferedDataStorage.h:30

Declares prototypes for a const accessor and a setter without inline implementations.

Parameters
ReturnTypeThe return type of the accessor.
AccessorThe accessor method name.
MutatorThe setter name suffix (appended to "set").
#define UNDEFINED_RETURNVALUE_ACCESSOR (   ReturnType,
  Member 
)    virtual const ReturnType Member() const { throw DtUnimplementedMethod("The const " #Member " const method is unimplemented"); };

Defines a virtual const accessor that throws DtUnimplementedMethod, marking the method as requiring an override in a derived class. Returns by value.

Parameters
ReturnTypeThe return type of the accessor.
MemberThe accessor method name.
#define UNDEFINED_RETURNREF_ACCESSOR (   ReturnType,
  Member 
)    virtual const ReturnType& Member() const { throw DtUnimplementedMethod("The const &" #Member " const method is unimplemented"); };

Defines a virtual const reference accessor that throws DtUnimplementedMethod, marking the method as requiring an override in a derived class.

Parameters
ReturnTypeThe return type of the accessor.
MemberThe accessor method name.
#define UNDEFINED_RETURNREF_CONST_ACCESSOR (   ReturnType,
  Member 
)    virtual const ReturnType& Member() const { throw DtUnimplementedMethod("The const &" #Member " const method is unimplemented"); };

Defines a virtual const reference accessor that throws DtUnimplementedMethod. Equivalent to UNDEFINED_RETURNREF_ACCESSOR; provided for naming clarity in contexts where const-ness is explicit.

Parameters
ReturnTypeThe return type of the accessor.
MemberThe accessor method name.
#define UNDEFINED_RETURNREF_ACCESSORS (   ReturnType,
  Member 
)
Value:
virtual ReturnType& Member() { throw DtUnimplementedMethod("The &" #Member " method is unimplemented"); };
#define UNDEFINED_RETURNREF_CONST_ACCESSOR(ReturnType, Member)
Defines a virtual const reference accessor that throws DtUnimplementedMethod. Equivalent to UNDEFINED...
Definition: doubleBufferedDataStorage.h:67

Defines both const and non-const virtual reference accessors that throw DtUnimplementedMethod, requiring overrides in a derived class.

Parameters
ReturnTypeThe return type of the accessors.
MemberThe accessor method name.
#define UNDEFINED_MUTATOR (   Type,
  Set 
)    virtual void set##Set(const Type& v) { throw DtUnimplementedMethod("The set" #Set " method is unimplemented"); };

Defines a virtual setter that throws DtUnimplementedMethod, requiring an override in a derived class.

Parameters
TypeThe parameter type of the setter.
SetThe setter name suffix (appended to "set").
#define UNDEFINED_MUTATOR_WITH_ARGS (   Set,
  ... 
)    virtual void set##Set(__VA_ARGS__) { throw DtUnimplementedMethod("The set" #Set " method is unimplemented"); };

Defines a virtual setter accepting variadic arguments that throws DtUnimplementedMethod, requiring an override in a derived class.

Parameters
SetThe setter name suffix (appended to "set").
...The parameter list for the setter method.
#define UNDEFINED_MUTATOR_METHOD (   Set,
  ... 
)    virtual void set##Set(__VA_ARGS__) { throw DtUnimplementedMethod("The set" #Set " method is unimplemented"); };

Defines a virtual setter method accepting variadic arguments that throws DtUnimplementedMethod. Functionally identical to UNDEFINED_MUTATOR_WITH_ARGS; provided as an alternative naming convention.

Parameters
SetThe setter name suffix (appended to "set").
...The parameter list for the setter method.
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR (   Type,
  Member,
  Set 
)
Value:
#define UNDEFINED_RETURNVALUE_ACCESSOR(ReturnType, Member)
Defines a virtual const accessor that throws DtUnimplementedMethod, marking the method as requiring a...
Definition: doubleBufferedDataStorage.h:53
#define UNDEFINED_MUTATOR(Type, Set)
Defines a virtual setter that throws DtUnimplementedMethod, requiring an override in a derived class...
Definition: doubleBufferedDataStorage.h:81

Defines an undefined virtual by-value accessor and an undefined virtual setter, both throwing DtUnimplementedMethod and requiring overrides in a derived class.

Parameters
TypeThe accessor return type and setter parameter type.
MemberThe accessor method name.
SetThe setter name suffix (appended to "set").
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR (   Type,
  Member,
  Set 
)
Value:
#define UNDEFINED_RETURNREF_ACCESSOR(ReturnType, Member)
Defines a virtual const reference accessor that throws DtUnimplementedMethod, marking the method as r...
Definition: doubleBufferedDataStorage.h:60
#define UNDEFINED_MUTATOR(Type, Set)
Defines a virtual setter that throws DtUnimplementedMethod, requiring an override in a derived class...
Definition: doubleBufferedDataStorage.h:81

Defines an undefined virtual const-reference accessor and an undefined virtual setter, both throwing DtUnimplementedMethod and requiring overrides in a derived class.

Parameters
TypeThe accessor return type and setter parameter type.
MemberThe accessor method name.
SetThe setter name suffix (appended to "set").
#define UNDEFINED_RETURNREF_ACCESSORS_MUTATOR (   Type,
  Member,
  Set 
)
Value:
#define UNDEFINED_RETURNREF_ACCESSORS(ReturnType, Member)
Defines both const and non-const virtual reference accessors that throw DtUnimplementedMethod, requiring overrides in a derived class.
Definition: doubleBufferedDataStorage.h:74
#define UNDEFINED_MUTATOR(Type, Set)
Defines a virtual setter that throws DtUnimplementedMethod, requiring an override in a derived class...
Definition: doubleBufferedDataStorage.h:81

Defines undefined virtual const and non-const reference accessors and an undefined virtual setter, all throwing DtUnimplementedMethod and requiring overrides in a derived class.

Parameters
TypeThe accessor return type and setter parameter type.
MemberThe accessor method name.
SetThe setter name suffix (appended to "set").
#define UNDEFINED_CONST_METHOD (   Type,
  Method,
  ... 
)    virtual Type Method(__VA_ARGS__) const { throw DtUnimplementedMethod("The const " #Method " const method is unimplemented"); };

Defines a virtual const method with variadic parameters that throws DtUnimplementedMethod, requiring an override in a derived class.

Parameters
TypeThe return type of the method.
MethodThe method name.
...The parameter list for the method.
#define UNDEFINED_METHOD (   Type,
  Method,
  ... 
)    virtual Type Method(__VA_ARGS__) { throw DtUnimplementedMethod("The " #Method " method is unimplemented"); };

Defines a virtual non-const method with variadic parameters that throws DtUnimplementedMethod, requiring an override in a derived class.

Parameters
TypeThe return type of the method.
MethodThe method name.
...The parameter list for the method.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)