20 #include "SheafSystem/any.h" 21 #include "SheafSystem/assert_contract.h" 40 _disable_invariance_check_request_depth = 0;
67 bool result =
dynamic_cast<const any*
>(other) != 0;
virtual bool invariant() const
Class invariant, intended to be redefined in each descendant. See below for template for invariant in...
virtual bool is_ancestor_of(const any *other) const
True if other conforms to this.
Abstract base class with useful features for all objects.
virtual ~any()
Destructor.
int disable_invariance_check_request_depth() const
Number of times disable_invariant_check has been called without matching call to enable_invariant_che...
virtual any * clone() const
Virtual constructor, makes a new instance of the same type as this.
bool invariant_check() const
True if invariant checking is enabled.
bool is_same_type(const any *other) const
True if other is the same type as this.