Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)

Enlighten API 3.10 Documentation
Results will update as you type.
  • class Geo GeoReleaseDestructor
  • class Geo GeoRGBXTexture
  • class Geo GeoScopedCSection
  • class Geo GeoSingleton
  • class Geo GeoSpatialHash
  • class Geo GeoString
  • class Geo GeoTimer
  • class Geo GeoTokenList
  • class Geo GeoTokenStream
  • class Geo GeoTriangle
  • class Geo GeoTriple
  • class Geo GeoUniqueDelegatePtr
  • class Geo GeoUniquePtr
  • class Geo GeoUniqueReleasePtr
  • class Geo GeoV128Texture
  • class Geo GeoVariant
  • class Geo GeoVirtualPageAllocator
  • class Geo GeoZLibFileStream
  • class Geo GoodRNG
  • class Geo IdentDataCompare
  • class Geo IdentVertLinkBuilder
  • class Geo IdxLink
  • class Geo IffReader
  • class Geo IffTextWriter
  • class Geo IffWriter
  • class Geo IGeoEvent
  • class Geo IGeoInputStream
  • class Geo IGeoProgressProxy
  • class Geo IGeoRayTracingContext
  • class Geo IGeoReleasable
  • class Geo IGeoSerialisable
  • class Geo IGeoStream
  • class Geo IRtMesh
  • class Geo ITerminalCmdHandler
  • class Geo ITerminalDelegate
  • class Geo ITerminalInputHandler
  • class Geo ITerminalOutputHandler
  • class Geo Matrix
  • class Geo MemoryAllocator
  • class Geo NonCopyable
  • class Geo Optional
  • class Geo PackedInteger4
  • class Geo PointLeaf
  • class Geo PointSplit
  • class Geo PointSplitBounds
  • class Geo PointSplitState
  • class Geo QuickTaskTimer
  • class Geo RayResult
  • class Geo Releasable
  • class Geo RingBuffer
  • class Geo RtMesh
  • class Geo RtMeshGroup
  • class Geo ScopedTickCounter
  • class Geo ScopedTimer
  • class Geo SHCoeff
  • class Geo SimpleRNG
  • class Geo TerminalProvider
  • class Geo TextureWriter
  • class Geo TreeNode
  • class Geo TriGroupSelection
  • class Geo TxtProgressBar
  • namespace Geo Iff
  • namespace Geo PathUtils
  • namespace Geo Version
  • struct Geo ArrayRange
  • struct Geo AtlasMeshChartingFlags
  • struct Geo AtlasMeshTriangle
  • struct Geo AtlasMeshTriangleCorner
  • struct Geo AtlasMeshVertex
  • struct Geo AtlasMeshVertexSplitResult
  • struct Geo BboxEdge
  • struct Geo BboxFace
  • struct Geo ClippedRay
  • struct Geo DebugLine
  • struct Geo eWindingOrder
  • struct Geo FixedSizeArray
  • struct Geo GeoAtomic
  • struct Geo GeoError
  • struct Geo GeoFixedPoolList
  • struct Geo GeoFixedPoolMap
  • struct Geo GeoPoint2
    Calendars

You‘re viewing this with anonymous access, so some content might be blocked.
/
class Geo Optional

    This is the documentation for Enlighten.

    class Geo Optional

    Nov 21, 2019

    template<typename Type>
    class Geo::Optional

    Class allowing a value object (integer, string, etc) to be optional, by storing a current value, default value and a boolean to state which is valid.

    The template type 'Type' must be default-constructible.

    Functions

    Name Description
    Default()

    Returns the default value.

    IsDefaultDefined()

    Returns true if the default value has been set.

    IsDefined()

    Returns true if the value has been set.

    Load(Geo::IGeoStream &)

    Load this Geo::Optional<Type> from a Geo::IGeoStream.

    operator!=(const Optional &)

    Inequality operator.

    operator=(const Type &)

    Assignment operator.

    operator==(const Optional &)

    Equality operator.

    Optional()

    Constructor. Defaults to undefined.

    Optional(const Type &)

    Explicit construction from a value.

    Optional(const Optional &)

    Copy constructor.

    Optional(void *, const Type &)

    Constructor that allows you to set a default, but leave value undefined.

    Save(Geo::IGeoStream &)

    Save this Geo::Optional<Type> to a Geo::IGeoStream.

    SetDefault(const Type &)

    Set the default value.

    Undefine()

    Unsets the value, returning it to the default.

    UndefineDefault()

    Unsets the default value.

    Value()

    Return the value, if set, otherwise the default.


    const Type& Geo::Optional< Type >::Default


    public: const Type & Default() const


    Returns the default value.


    bool Geo::Optional< Type >::IsDefaultDefined


    public: bool IsDefaultDefined() const


    Returns true if the default value has been set.


    bool Geo::Optional< Type >::IsDefined


    public: bool IsDefined() const


    Returns true if the value has been set.


    bool Geo::Optional< Type >::Load


    public: bool Load
    (
        Geo::IGeoStream & stream
    )


    Load this Geo::Optional<Type> from a Geo::IGeoStream.

    Expected the file value to be in little-endian, and restores to native. Does not read/modify the default value.


    bool Geo::Optional< Type >::operator!=


    public: bool operator!=
    (
        const Optional & v
    ) const


    Inequality operator.


    Optional& Geo::Optional< Type >::operator=


    public: Optional & operator=
    (
        const Type & v
    )


    Assignment operator.


    bool Geo::Optional< Type >::operator==


    public: bool operator==
    (
        const Optional & v
    ) const


    Equality operator.


    Geo::Optional< Type >::Optional


    public: Optional()


    Constructor. Defaults to undefined.


    Geo::Optional< Type >::Optional


    public: Optional
    (
        const Type & v
    )


    Explicit construction from a value.


    Geo::Optional< Type >::Optional


    public: Optional
    (
        const Optional & v
    )


    Copy constructor.


    Geo::Optional< Type >::Optional


    public: Optional
    (
        void * ,
        const Type & def
    )


    Constructor that allows you to set a default, but leave value undefined.


    bool Geo::Optional< Type >::Save


    public: bool Save
    (
        Geo::IGeoStream & stream
    ) const


    Save this Geo::Optional<Type> to a Geo::IGeoStream.

    Writes the file value in little-endian. Does not store the default value.


    void Geo::Optional< Type >::SetDefault


    public: void SetDefault
    (
        const Type & val
    )


    Set the default value.


    void Geo::Optional< Type >::Undefine


    public: void Undefine()


    Unsets the value, returning it to the default.


    void Geo::Optional< Type >::UndefineDefault


    public: void UndefineDefault()


    Unsets the default value.


    const Type& Geo::Optional< Type >::Value


    public: const Type & Value() const


    Return the value, if set, otherwise the default.

    , multiple selections available,
    {"serverDuration": 10, "requestCorrelationId": "f5a3c5f362c441d7b28326be7afa7d9a"}