Interface ICPPEnumeration

All Superinterfaces:
Cloneable, org.eclipse.core.runtime.IAdaptable, IBinding, ICPPBinding, IEnumeration, IType
All Known Subinterfaces:
ICPPEnumerationSpecialization

public interface ICPPEnumeration extends IEnumeration, ICPPBinding
C++ specific version of enumerations.
Since:
5.2
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • isScoped

      boolean isScoped()
      Returns whether this enumeration is scoped. An enumeration can only be scoped in C++.
    • getFixedType

      IType getFixedType()
      Returns the underlying type of the enumeration if it is fixed, or null otherwise. The underlying type can only be fixed in C++.
    • asScope

      ICPPScope asScope()
      Returns the scope containing the enumerators. By the standard the scope is only defined for scoped enums, however it will be returned for any enum. In case the enum has no definition (just opaque declarations) an empty scope will be returned.
    • isNoDiscard

      boolean isNoDiscard()
      Returns weather the enum is marked as 'nodiscard'
      Since:
      7.0