next up previous
Next: AST_EXEMPT - Exempt an Object pointer from AST context handling
Up: AST Routine Descriptions
Previous: AST_DISTANCE - Calculate the distance between two points in a Frame

AST_END - End an AST context   

Description:
This routine ends an AST context which was begun with a matching invocation of AST_BEGIN. Any Object pointers created within this context will be annulled (just as if AST_ANNUL had been invoked) and will cease to be valid afterwards, unless they have previously been exported using AST_EXPORT or rendered exempt using AST_EXEMPT. If annulling a pointer causes an Object's RefCount attribute to fall to zero (which happens when the last pointer to it is annulled), then the Object will be deleted.

Invocation:
CALL AST_END( STATUS )

Arguments:
STATUS = INTEGER (Given and Returned)
The global status.

Class Applicability:
Object
This routine applies to all Objects.

Notes:
  • This routine attempts to execute even if STATUS is set to an error value.
  • Contexts delimited by AST_BEGIN and AST_END may be nested to any depth.



next up previous
Next: AST_EXEMPT - Exempt an Object pointer from AST context handling
Up: AST Routine Descriptions
Previous: AST_DISTANCE - Calculate the distance between two points in a Frame

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
R.F. Warren-Smith & D.S. Berry
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils