Skip to main content

Module number

Module number 

Source
Expand description

Value and Number types for Foundation.

Corresponds to Foundation/NSNumber.hpp.

§C++ Equivalent

namespace NS {
class Value : public Copying<Value> {
public:
    static Value* value(const void* pValue, const char* pType);
    static Value* value(const void* pPointer);
    static Value* alloc();
    Value*        init(const void* pValue, const char* pType);
    Value*        init(const class Coder* pCoder);
    void          getValue(void* pValue, UInteger size) const;
    const char*   objCType() const;
    bool          isEqualToValue(Value* pValue) const;
    void*         pointerValue() const;
};

class Number : public Copying<Number, Value> {
public:
    // Many factory methods and accessors for all numeric types
};
}

Structs§

Number
An Objective-C number object.
Value
An Objective-C value object.