Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Class::Fields::AttribsUser Contributed Perl DocumentaClass::Fields::Attribs(3)

NAME
	 Class::Fields::Attribs	- Attribute constants for use with data	members

SYNOPSIS
	 # Export the attribute	constants
	 use Class::Fields::Attribs;

DESCRIPTION
       Simply exports a	set of constants used for low level work on data
       members.	 Each constant is a bitmask used to represent the type of a
       data member (as in Public, Private, etc...).

       The exported attributes are:

       PUBLIC
       PRIVATE
       PROTECTED
       INHERITED
	   Each	of these constants is a	bitmask	representing a possible
	   setting of a	field attribute.  They can be combined by using	a
	   bitwise OR and attributes can be checked for	using a	bitwise	AND.
	   For example:

	       # Indicate a piece of data which	is both	public and inherited.
	       $attrib = PUBLIC	| INHERITED;

	       # Check to see if an attribute is protected.
	       print "Protected" if $attrib & PROTECTED;

	   It is rare that one has to use these	constants and it is generally
	   better to use the functions provided	by Class::Fields.

AUTHOR
       Michael G Schwern <schwern@pobox.com>

SEE ALSO
       Class::Fields

perl v5.32.0			  2011-02-05	     Class::Fields::Attribs(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Class::Fields::Attribs&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help