HDK
|
#include <allowed.h>
Public Types | |
typedef std::pair< bool, std::string > | Pair |
typedef _State SdfAllowed::* | UnspecifiedBoolType |
Public Member Functions | |
SdfAllowed () | |
Construct true . More... | |
SdfAllowed (bool x) | |
Construct true . More... | |
SdfAllowed (const char *whyNot) | |
Construct false with annotation whyNot . More... | |
SdfAllowed (const std::string &whyNot) | |
Construct false with annotation whyNot . More... | |
SdfAllowed (bool condition, const char *whyNot) | |
Construct in condition with annotation whyNot if false . More... | |
SdfAllowed (bool condition, const std::string &whyNot) | |
Construct in condition with annotation whyNot if false . More... | |
SdfAllowed (const Pair &x) | |
Construct from bool,string pair x . More... | |
~SdfAllowed () | |
operator UnspecifiedBoolType () const | |
Returns true in a boolean context if allowed, false otherwise. More... | |
bool | operator! () const |
Returns false in a boolean context if allowed, true otherwise. More... | |
operator const std::string & () const | |
SDF_API const std::string & | GetWhyNot () const |
bool | IsAllowed (std::string *whyNot) const |
bool | operator== (const SdfAllowed &other) const |
bool | operator!= (const SdfAllowed &other) const |
Indicates if an operation is allowed and, if not, why not.
A SdfAllowed
either evaluates to true
in a boolean context or evaluates to false
and has a string annotation.
typedef std::pair<bool, std::string> SdfAllowed::Pair |
typedef _State SdfAllowed::* SdfAllowed::UnspecifiedBoolType |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SDF_API const std::string& SdfAllowed::GetWhyNot | ( | ) | const |
Returns the reason why the operation is not allowed. If the operation is allowed this returns the empty string.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |