Class AbstractDictionary

Inheritance Relationships

Base Type

Class Documentation

class AbstractDictionary : public mindspore::abstract::AbstractBase

Class AbstractDictionary describes a dictionary node’s abstract value.

Public Functions

inline explicit AbstractDictionary(const std::vector<AbstractAttribute> &key_values)

Constructor of AbstractDictionary.

Parameters

key_values[in] The vector of AbstractAttribute.

~AbstractDictionary() override = default

Destructor of AbstractDictionary.

virtual AbstractBasePtr Clone() const override

Clone an abstract from the abstract.

Returns

A pointer to the cloned abstract.

virtual AbstractBasePtr Broaden() const override

Broaden the abstract. It will upgrade the abstract to a higher level.

Returns

A pointer to the broadened abstract.

virtual std::string ToString() const override

Get the string representation of this object.

Returns

The string representation.

virtual std::size_t hash() const override

Get the hash value of this object.

Returns

The hash value.

inline std::size_t size() const

Get the size of key values.

Returns

A size_t.

inline const std::vector<AbstractAttribute> &elements() const

Get the key values.

Returns

A vector of AbstractAttribute.